$('#print').click(function () {

    var measureId = $('#measureId').val();
    $.ajax({
        url: '/measure-print/' + measureId,
        async : true,
        beforeSend: function(){
            layer.msg('打印中', {icon: 1});
        },
        success :function (data) {
            if(data=='success'){
                layer.msg("打印完毕");
                $('#source').hide();
                $('#print').addClass("disabled");
                $('#read').removeClass("disabled");
                init();
            }
        }
    });

});